package tianrun.ziguan.api.calculate.config.config.exception;

public final class CodeException extends RuntimeException {

    private final transient ErrorCode errorCode;

    public CodeException(ErrorCode errorCode) {
        super(errorCode.toString());
        this.errorCode = errorCode;
    }

    public ErrorCode getErrorCode() {
        return errorCode;
    }
}
